package com.treasure.mall.zbqmallapi.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 *
 * 接口访问控制，是否需要登录，那些角色需要登录
 * +---------------------------------------------------------
 * * @package: com.treasure.mall.zbqmallapi.annotation
 * * @author: guomw (guomwchen@foxmail.com)
 * * @date: 2020/6/12 22:51
 * * @since: V1.0.0
 * +---------------------------------------------------------
 * 注意：本内容仅限于内部传阅，禁止外泄以及用于其他的商业目的
 * Copyright 2019-2022 com.treasure.mall.zbqmallapi.annotation Inc. All rights reserved.
 */
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RUNTIME)
public @interface AccessControl {

    /**
     * 需要登录，默认false
     *
     * @return false
     */
    boolean needLogin() default false;
}
